Statistical Rethinking by McElreath Richard;

Statistical Rethinking by McElreath Richard;

Author:McElreath, Richard;
Language: eng
Format: epub
Publisher: CRC Press LLC
Published: 2020-10-15T00:00:00+00:00


Hamiltonian Monte Carlo approximation

2000 samples from 4 chains

Sampling durations (seconds):

  warmup sample total

chain:1 0.06 0.03 0.09

chain:2 0.05 0.03 0.09

chain:3 0.05 0.03 0.08

chain:4 0.05 0.04 0.10

Formula:

log_gdp_std ~ dnorm(mu, sigma)

mu <- a[cid] + b[cid] * (rugged_std - 0.215)

a[cid] ~ dnorm(1, 0.1)

b[cid] ~ dnorm(0, 0.3)

sigma ~ dexp(1)

There were 2000 samples from all 4 chains, because each 1000 sample chain uses by default the first half of the samples to adapt. Something curious happens when we look at the summary:

R code 9.18

precis( m9.1 , 2 )



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.